﻿$(function () {
    $("#BlogsGrid").kendoGrid({
        dataSource: {
            transport: {
                read: { url: "http://localhost:51992/api/Values/", type: "GET" }
            },
            pageSize: 5,
            schema: {
                model: {
                    id: "Id"
                }
            },
        },
        columns: [
            { field: "Id", title: "#", width: "10px" },
            { field: "Title", title: "Titre", width: "120px" },
            { field: "AllowComments", title: "Commentaires", width: "10px" },
            { field: "CommentCount", title: "Nb Commantaires", width: "10px" },
            { field: "CreatedOnUtc", title: "Date", width: "40px" },
            { command: ["edit", "destroy"], title: "Action", width: "40px"}
        ],
        sortable: true,
        pageable: { pageSizes: true },
        resizable: true,
        height: 430
    });

});
